package io.renren.modules.order.dao;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.renren.modules.order.enity.MerchantEntityOrder;
import io.renren.modules.order.enity.MerchantOrderEntityVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;


@Mapper
public interface MerchantOrderDao extends BaseMapper<MerchantEntityOrder> {

    IPage<MerchantOrderEntityVo> unShippedByPage(IPage<MerchantOrderEntityVo> iPage, @Param("status") Integer status,
                                                 @Param("merchantId") String merchantId, @Param("startDate") LocalDateTime start,@Param("endDate") LocalDateTime end);
    List<MerchantOrderEntityVo> getOrderMerchantListByMerId(@Param("merchantId")String merchantId);

    MerchantOrderEntityVo getDetails(@Param("orderCode")String orderCode,@Param("merchantId")String merchantId);

    MerchantOrderEntityVo selectInfoBySkuId(@Param("skuId")String skuId);

    List<Integer> getTurnoverByStatusAndDate(Map map);
}
